package modler

import (
	"gorm.io/gorm"
	"time"
)

type Video struct {
	gorm.Model
	Title        string  `json:"title" form:"title"`
	Description  string  `json:"description" form:"description"`
	CoverUrl     string  `json:"cover_url" form:"cover_url"`
	Category     string  `json:"category" form:"category"`
	Types        string  `json:"types" form:"types"`
	Region       string  `json:"region" form:"region"`
	Year         int     `json:"year" form:"year"`
	Actor        string  `json:"actor" form:"actor"`
	PlayCount    int     `json:"play_count" form:"play_count"`
	LikeCount    int     `json:"like_count" form:"like_count"`
	CollectCount int     `json:"collect_count" form:"collect_count"`
	CommentCount int     `json:"comment_count" form:"comment_count"`
	Hot          float64 `json:"hot" form:"hot"`
}
type VideoEp struct {
	gorm.Model
	VideoId int    `json:"video_id" form:"video_id"`
	EpNum   int    `json:"ep_num" form:"ep_num"`
	Title   string `json:"title" form:"title"`
	EpTime  string `json:"ep_time" form:"ep_time"`
}
type VideoEpLog struct {
	gorm.Model
	UserId    int       `json:"user_id" form:"user_id"`
	VideoId   int       `json:"video_id" form:"video_id"`
	EpId      int       `json:"ep_id" form:"ep_id"`
	EpTime    string    `json:"ep_time" form:"ep_time"`
	EpTimeAt  string    `json:"ep_time_at" form:"ep_time_at"`
	WatchTime time.Time `json:"watch_time" form:"watch_time"`
}
